#!/usr/bin/perl
# stop ups service

require './ups-lib.pl';

&init_config();
&ReadParse();

`upsmon -c stop`;
`upsd -c stop`;
`upsdrvctl stop`;

&nas_syslog("UPS","naslog_info",19008,"Now stop the ups service!");

&redirect('index.cgi');
